from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `clas` ADD `addr` VARCHAR(255) NOT NULL  COMMENT '班级地址';"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `clas` DROP COLUMN `addr`;"""
